In [1]:
library("NADA")
In [2]:
main_columns = c(
'epa_rain_zone', 'season', 'primary_landuse',
'parameter', 'fraction', 'units', 'res', 'qual'
)
df = read.csv("nsqdata_example_subset.csv")[main_columns]
head(df)
Out[2]:
In [3]:
dfros = NADA::ros(df$res, df$qual=='<')
median(dfros)
Out[3]: